{{define "Title"}}{{.routname | html}}{{end}}
{{define "Content"}}

<fieldset>
  <legend><b>{{.routname | html}}</b></legend>
</fieldset>

<script type=text/javascript src="/js/tablestyle.js"></script>

{{if .routs}}
<div class="content-box">
  <table id="tbl_ls" border="1" cellspacing="0" cellpadding="0">
    <thead>
      <tr>
        <th>索引</th>
        <th>前一站</th>
        <th>当前站</th>
        <th>下一站</th>
        <th>回流站</th>
        <th>维修站</th>
        <th>Bypass</th>
        <th>测试</th>
      </tr>  
    </thead>
    <tbody>
      {{range .routs}}
      <tr>
      <td fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px" align="center">{{.Index | html}}</td>
      <td fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px">{{.Prev | html}}</td>
      <td fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px">{{.Curr | html}}</td>
      <td fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px">{{.Next | html}}</td>
      <td fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px">{{.Cycle | html}}</td>
      <td fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px"><a href="/repairset?q={{.Repair | html}}" target="_blank">{{.Repair | html}}</a></td>
      <td fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px" align="center">{{.Bypass | html}}</td>
      <td fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px">{{.Testing | html}}</td>
      </tr>
      {{end}}
    </tbody>      
  </table>
</div>
{{end}}

{{end}}